package org.aceor.mddal.client.jdbc;

import org.aceor.mddal.client.jdbc.adapter.AbstractPreparedStatementAdapter;

import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.List;

/**
 * Created by lxue on 16/4/5.
 */
public class PreparedStatementFacade extends AbstractPreparedStatementAdapter implements PreparedStatement {

    private String originSql;

    public PreparedStatementFacade(DataSourceFacade dataSourceFacade, ConnectionFacade connectionFacade) {
        super(dataSourceFacade, connectionFacade);
    }

    private void setParameters(final PreparedStatement preparedStatement, final List<Object> parameters) throws SQLException {
        int i = 1;
        for (Object each : parameters) {
            preparedStatement.setObject(i++, each);
        }
    }
}
